package com.lou.springboot.dao;

import com.lou.springboot.entity.AdminUser1;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * Created by Guaguaerhao on 2020/7/9 22:34
 */
@Mapper
public interface AdminUser1Dao {
    AdminUser1 login(String userName,
                     String loginPassword);

    AdminUser1 getUserAdminById(@Param("adminId") Integer loginUserId);

    boolean updatePassword(@Param("loginUserId") Integer loginUserId,
                   @Param("originalPassword") String originalPassword,
                   @Param("newPassword") String newPassword);

    boolean updateName(@Param("loginUserId") Integer loginUserId,
                       @Param("loginUserName") String loginUserName,
                       @Param("nickName") String nickName);
}
